lib: move strnlen()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:48:14 +0000 (14:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:48:14 +0000 (14:48 +0200)
commit36bba1238a398fb7f84a6c432e099db91d54c657
tree6c704c8aecdba0740517393855ef9f8884881770
parent9d0c024c2fa9f5e0224edf26febf27feaa757827
lib: move strnlen()

Allow the function to be individually linkable, discardable, and
overridable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/string.c
xen/lib/Makefile
xen/lib/strnlen.c [new file with mode: 0644]